<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Push extends Model
{
    protected $table = 'pushes';
    protected $fillable = [
        'user_id',
        'token'
    ];
       /**
     * 自动转换的属性
     */
    protected $casts = [
        'user_id' => 'integer',
        'token' => 'string',
        'created_at' => 'datetime:Y-m-d H:i:s',
        'updated_at' => 'datetime:Y-m-d H:i:s',
    ];
}
